package cn.raven.user.mapper;

import cn.raven.basic.mapper.BaseMapper;
import cn.raven.user.domain.Logininfo;
import org.apache.ibatis.annotations.Param;

/**

* @Description: 部门管理mapper层接口
* @Author: king
* @Version: 1.0
* @Date:  2022/6/21 17:59  
  */
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    //根据电话号和type查询
     Logininfo findByPhoneAndType(@Param("phone")String phone, @Param("type")String type);
    //根据username和type查询
    Logininfo findByUsernameAndType(@Param("username") String username, @Param("type") String type);
    //根据Userid查询
    Logininfo findByUserId(Long userId);
}